Either we or clang needs to get its shit together about this warning.
But using it during development with clang just makes actually usable
warnings get lost in a flood of -Wcast-align warnings.
'-Wno-c++11-extensions',
'-Wno-missing-include-dirs',
'-Wno-typedef-redefinition',
- '-Wcast-align',
'-Wduplicated-branches',
'-Wduplicated-cond',
'-Wformat=2',
'-Werror=vla',
'-Werror=write-strings',
]
+
+ if cc.get_id() == 'gcc'
+ test_cflags += ['-Wcast-align'] # This warns too much on clang
+ endif
else
test_cflags = []
endif